﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Devonline.Identity.Admin.Controllers;

/// <summary>
/// 系统管理的功能页面
/// </summary>
[Authorize(Roles = GROUP_MAINTAINERS)]
public class AdminController : Controller
{
    /// <summary>
    /// 主页
    /// </summary>
    /// <returns></returns>
    public IActionResult Index()
    {
        return View();
    }
    /// <summary>
    /// 基础数据
    /// </summary>
    /// <returns></returns>
    public IActionResult Parameter()
    {
        return View();
    }
    /// <summary>
    /// 用户
    /// </summary>
    /// <returns></returns>
    public new IActionResult User()
    {
        return View();
    }
    /// <summary>
    /// 组织单位
    /// </summary>
    /// <returns></returns>
    public IActionResult Group()
    {
        return View();
    }
    /// <summary>
    /// 级别
    /// </summary>
    /// <returns></returns>
    public IActionResult Level()
    {
        return View();
    }
    /// <summary>
    /// 角色
    /// </summary>
    /// <returns></returns>
    public IActionResult Role()
    {
        return View();
    }
    /// <summary>
    /// 用户角色
    /// </summary>
    /// <returns></returns>
    public IActionResult UserRole()
    {
        return View();
    }
    /// <summary>
    /// 用户组织
    /// </summary>
    /// <returns></returns>
    public IActionResult UserGroup()
    {
        return View();
    }
    /// <summary>
    /// 资源
    /// </summary>
    /// <returns></returns>
    public IActionResult Resource()
    {
        return View();
    }
    /// <summary>
    /// 访问规则
    /// </summary>
    /// <returns></returns>
    public IActionResult AccessRule()
    {
        return View();
    }
    /// <summary>
    /// 访问申请
    /// </summary>
    /// <returns></returns>
    public IActionResult AccessApply()
    {
        return View();
    }
    /// <summary>
    /// 访问记录
    /// </summary>
    /// <returns></returns>
    public IActionResult AccessRecord()
    {
        return View();
    }
    /// <summary>
    /// 用户可访问资源查询
    /// </summary>
    /// <returns></returns>
    public IActionResult UserResource()
    {
        return View();
    }
}